//
//  JddInitiatePlanDetailOperation.m
//  PlayBall
//
//  Created by yanxun on 8/27/14.
//
//

#import "JddInitiatePlanDetailOperation.h"

@implementation JddInitiatePlanDetailOperation
- (void)main{
    @autoreleasepool {
        JddNetDataCommunication *netDataCommunication = [[JddNetDataCommunication alloc] init];
        NSString *bodyString = [JddParameterBuilder initschemeDetailUserId:self.userId SchemeId:self.schemeId DataSource:self.dataSource];
        NSData *dataAd = [netDataCommunication requestDataByPostBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
        
        [((NSObject*)self.delegate) performSelectorOnMainThread:@selector(JddInitiatePlanDetailResult:) withObject:dataAd waitUntilDone:NO];
    }
}
@end
